//
//  EditArticleTableViewCell.m
//  我的图书馆
//
//  Created by 孙  路 on 15-1-6.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "EditArticleTableViewCell.h"

@implementation EditArticleTableViewCell
- (void)dealloc
{
    [_selectImage release];
    [_titleLabel release];
    [_timeLabel release];
    [_authorLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.selectImage = [[UIImageView alloc] initWithFrame:CGRectMake(25, 25, 30, 30)];
        [_selectImage setImage:[UIImage imageNamed:@"iconfont-yuanquan.png"]];
        [self.contentView addSubview:_selectImage];
        [_selectImage release];

        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(80, 10,  275, 20)];
        [self.contentView addSubview:_titleLabel];
        [_titleLabel release];

        self.timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(80, 30, 150, 10)];
        [_timeLabel setFont:[UIFont systemFontOfSize:13]];
        [self.contentView addSubview:_timeLabel];
        [_timeLabel release];

        self.authorLabel = [[UILabel alloc] initWithFrame:CGRectMake(210, 30, 100, 20)];
        [_authorLabel setFont:[UIFont systemFontOfSize:13]];
        [self.contentView addSubview:_authorLabel];
        [_authorLabel release];
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
